<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper title="Payment">

	<label class="label100p" for=""><spring:message
			code="course.label.pay_option" /></label>
	<form action="https://www.paypal.com/cgi-bin/webscr" method="post"
		id="payPalForm">

		<input type="hidden" name="item_number"
			value="Course Payment to Three2Learn"> <input type="hidden"
			name="cmd" value="_xclick"> <input type="hidden"
			name="no_note" value="1"> <input type="hidden"
			name="business" value="your@paypalaccount.com"> <input
			type="hidden" name="currency_code" value="EUR"> <input
			type="hidden" name="return" value="/payment/payment-complete/">
		<input name="item_name" type="hidden" value="${course.name}">
		<input name="amount" type="hidden" value="${course.price}"> <br />

	<script type="text/javascript">
    function myfunc () {
        var frm = document.getElementById("payPalForm");
        frm.submit();
    }
    window.onload = myfunc;
</script>
	</form>
</t:wrapper>